import { Bot_msg } from "../../model/bot/bot_msg";
import { sendImage } from "../../model/bot/sendLocaImage";
import browser, { tempDir } from "../../model/browser/browser";
import server from "../../model/client/server";
import { mathType, packge } from "../../model/msgHandle/packge";
import { style_default } from "../../style/default";

class index extends packge {

    constructor() {
        super()
    }
    init(): void {
        this.addMath(mathType.math_all, '属性', ((msg: Bot_msg) => { this.t_my_att(msg,'player_concise') }), this)
        this.addMath(mathType.math_all, '详细属性', ((msg: Bot_msg) => { this.t_my_att(msg,'player_more') }), this)
    }
  
   

    my_att(msg: Bot_msg) {
        browser.render(tempDir.属性模板, {
           
        }).then((png) => {
            sendImage(msg.getMsgid(), msg.getFormId(), png)
        });
    }
    t_my_att(msg: Bot_msg,type:string){
        server.api('body/Att',{render_type:type},msg)
    }

}
export default new index();